package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BinaryTreeNode {

    private Integer key;
    private String data;
    private BinaryTreeNode parentNode;
    private BinaryTreeNode leftNode;
    private BinaryTreeNode rightNode;

    public BinaryTreeNode(Integer key, String data) {
        this.key = key;
        this.data = data;
    }
}
